-
Notifications
You must be signed in to change notification settings - Fork 322
[DocC Live Preview] Cache on-disk snapshots opened in sourcekitd #2226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[DocC Live Preview] Cache on-disk snapshots opened in sourcekitd #2226
Conversation
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please test windows |
73115b1
to
1a6b818
Compare
@swift-ci please test |
@swift-ci please test Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments but otherwise looks good to me.
@swift-ci please test |
@swift-ci please test Windows |
26475de
to
ae095c4
Compare
Rebasing on top of main meant that I needed to rearrange a few things:
|
@swift-ci please test |
@swift-ci please test Windows |
Removed
SwiftLanguageService.withSnapshotFromDiskOpenedInSourcekitd()
in favor of a newOnDiskDocumentManager
actor that will cache all snapshots opened for the duration of atextDocument/doccDocumentation
request. This will prevent the syntax tree from being parsed multiple times for the same document in a single request.Follow up to #2216